How to convert entity to dto and vice versa